<?php
session_start ();
if (@! $_SESSION ["name"])
	exit ( "非法操作" );
require_once 'include/conn.php';
require_once 'include/Tool.class.php';
$id = $_POST ["id"];
$remark = $_POST ["remark"];
$status = $_POST ["status"];
$name = $_POST ["name"];
$time = $_POST ["time"];
date_default_timezone_set ( "PRC" );
$showtime = date ( "Y-m-d H:i:s" );
$sql = "update member set lastUpdateTime='" . $showtime . "',name='" . $name . "',remark='" . $remark . "',status='" . $status . "',time=" . $time . " where id=" . $id;
$result = mysql_query ( $sql );
//更新组状态
$tool = new Tool ();
$res = $tool->updateGroupStateByMemberId ( $id );
if ($result && $res) {
	echo "修改成功";
} else {
}
?>